package com.moji.service;


import com.baomidou.mybatisplus.extension.service.IService;
import com.moji.common.entity.MyPage;
import com.moji.entity.MjAboutUs;
import com.moji.entity.MjBasicInfo;
import com.moji.entity.dto.WeatherDto;
import com.moji.entity.vo.CommonBasicDTO;
import com.moji.entity.vo.WeatherVo;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageRequest;

/**
 * 网站底部基本信息表(MjBasicInfo)表服务接口
 *
 * @author makejava
 * @since 2024-07-21 14:35:51
 */
public interface MjBasicInfoService extends IService<MjBasicInfo> {

    /**
     * 通过ID查询单条数据
     *
     * @param id 主键
     * @return 实例对象
     */
    MjBasicInfo queryById(Long id);

    /**
     * 分页查询
     *
     * @param mjBasicInfo 筛选条件
     * @return 查询结果
     */
    MyPage<MjBasicInfo> queryByPage(CommonBasicDTO mjBasicInfo);

    /**
     * 新增数据
     *
     * @param mjBasicInfo 实例对象
     * @return 实例对象
     */
    MjBasicInfo insert(MjBasicInfo mjBasicInfo);

    /**
     * 修改数据
     *
     * @param mjBasicInfo 实例对象
     * @return 实例对象
     */
    MjBasicInfo update(MjBasicInfo mjBasicInfo);

    /**
     * 通过主键删除数据
     *
     * @param id 主键
     * @return 是否成功
     */
    boolean deleteById(Long id);

    WeatherVo queryWeather(WeatherDto weatherDto);
}
